package com.none.staff;

import android.app.Application;
import android.os.Environment;

import com.none.staff.utils.Constants;
import com.peter.baselibrary.utils.LoadedApkHuaWei;
import com.peter.baselibrary.utils.LogUtils;
import com.squareup.leakcanary.LeakCanary;
import com.tencent.bugly.crashreport.CrashReport;

public class StaffApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        initConfig();
    }
    /**
     *
     */
    void initConfig() {
        LoadedApkHuaWei.hookHuaWeiVerifier(this);
        CrashReport.initCrashReport(getApplicationContext(), "3198531762", true);
        LeakCanary.install(this);
        Constants.DOWNLOAD_APK_FILE_PATH = Environment.getExternalStorageDirectory().getAbsolutePath()
                + "/ApkFile";
        Constants.DOWNLOAD_RESOURCES_FILE_PATH = getApplicationContext().getFilesDir().getAbsolutePath();
    }
}
